
public class EncodeCharset {

	public static void main(String[] args) {
		try {
		String encoding = System.getProperty("file.encoding"); 
		System.out.println(encoding); 
		String ss = "好吗，如果真的在那里";
//		System.out.println(ss.getBytes());
//		System.out.println(new String(ss.getBytes(),"ISO8859-1"));
//		String sss = new String(ss.getBytes(),"ISO8859-1");
//		System.out.println(new String(sss.getBytes("ISO8859-1"),"utf8"));
		System.out.println(ss);
		String sss1 = new String(ss.getBytes("utf8"),"ISO8859-1");
		System.out.println(new String(sss1.getBytes("ISO8859-1"),"utf8"));
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
